/*
 * @Author: 偻儸小卒[EdisonLiu_]
 * @Date: 2021-06-21 17:01:22
 * @LastEditors: 偻儸小卒[EdisonLiu_]
 * @LastEditTime: 2021-06-24 17:33:11
 * @Description: 
 */
import store from './store'
export default {
  // 判断是否具有某某权限
  isPower(Permission) {
    let userPermissions = store.state.user.permission_routes
    // console.log(userPermissions)
    for (let i = 0; i < userPermissions.length; i++) {
      if (userPermissions[i].name == Permission) {
        return true
      }
    }
    return false
  },
}
